package com.lwq.project.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lwq.project.dao.custom.CustomMuneMapper;
import com.lwq.project.model.Mune;
import com.lwq.project.model.custom.CustomMune;
import com.lwq.project.service.MuneService;

/**
* @author 作者 linweiqiang
* @version 创建时间：2017年9月21日 下午1:51:07
* 类说明
*/

@Service
public class MuneServiceImple implements MuneService {
	
	@Autowired
	private CustomMuneMapper customMuneMapper;
	
	public List<CustomMune> getPageMune(Map<String, Object> map) {
		return customMuneMapper.getPageMune(map);
	}

	public int countMune() {
		return customMuneMapper.countMune();
	}

	public CustomMune getMuneById(String mId) {
		return customMuneMapper.getMuneById(mId);
	}

	public List<Mune>  getMuneByGrade(String mGrade) {
		return customMuneMapper.getMuneByGrade(mGrade);
	}

	public int updateMune(Mune mune) {
		return customMuneMapper.updateByPrimaryKeySelective(mune);
	}

	public int insertMune(Mune mune) {
		return customMuneMapper.insertSelective(mune);
	}

	public int deleteMune(String[] mIds) {
		return customMuneMapper.delMunes(mIds);
	}

	public List<Mune> getMuneByRidMgrade(Map<String, Object> map) {
		return customMuneMapper.getMuneByRidMgrade(map);
	}

	public List<Mune> getMuneByNRidMgrade(Map<String, Object> map) {
		return customMuneMapper.getMuneByNRidMgrade(map);
	}


}
